﻿using Module.Test.Domain.Validations.Customs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Module.Test.Domain.Commands.Customs
{
    public class UpdateCustomCommand : CustomCommand
    {
        public UpdateCustomCommand(long id, string name)
        {
            this.Id = id;
            this.Name = name;
        }
        public override bool IsValid()
        {
            ValidationResult = new UpdateCustomCommandValidation().Validate(this);
            return ValidationResult.IsValid;
        }
    }
}
